package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class LeadResponse {
    @ApiModelProperty(value = "置顶", dataType = "LeadResponse.Top")
    private List<Top> tops;
    @ApiModelProperty(value = "红木知识-banner", dataType = "LeadResponse.Banner")
    private List<Banner> banners;
    @ApiModelProperty(value = "今日海报", dataType = "LeadResponse.Card")
    private List<Card> cards;

    @ApiModel("LeadResponse.Top")
    @Data
    @Builder
    public static class Top {
        private Integer id;
        private String title;
        private String top;
        private String type;
        private String time;
    }

    @ApiModel("LeadResponse.Banner")
    @Data
    @Builder
    public static class Banner {
        private Integer id;
        private String pic;
        private String title;
        private String type;
        private String time;
    }

    @ApiModel("LeadResponse.Card")
    @Data
    @Builder
    public static class Card {
        private String pic;
    }
}
